package chapter2;



import java.util.*;


public class Day05 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入那一年：");
         int year = input.nextInt();
        Calendar calendar = new GregorianCalendar(year, 5, 0,0,0,0);
        int count=0;
        do {
            calendar.add(Calendar.DAY_OF_MONTH,+1);
            int day =  calendar.get(Calendar.DAY_OF_WEEK);
            if (day == 1){
                count++;
            }

        }while (count !=3);
        System.out.println(calendar.get(Calendar.DAY_OF_YEAR));


    }
}
